﻿using System;

namespace JinianNet.JNCms.Models
{
    public class Category
    {
        private int _id=0;
        private string _title=string.Empty;
        private string _keywords = string.Empty;
        private string _description = string.Empty;
        private string _keyname = string.Empty;
        private string _template = string.Empty;
        private string _childtemplate = string.Empty;
        private bool _verify=true;
        private int _rank=9;
        private int _parentid=0;
        private int _typeid=0;
        private int _count=0;
        private DateTime _createtime=DateTime.Now;
        private bool _isurl=false;
        private string _url=string.Empty;
        private int _depth = 0;
        /// <summary>
        /// 主键
        /// </summary>
        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        /// 关键词
        /// </summary>
        public string KeyWords
        {
            set { _keywords = value; }
            get { return _keywords; }
        }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description
        {
            set { _description = value; }
            get { return _description; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string KeyName
        {
            set { _keyname = value; }
            get { return _keyname; }
        }
        /// <summary>
        /// 模板
        /// </summary>
        public string TempLate
        {
            set { _template = value; }
            get { return _template; }
        }
        /// <summary>
        /// 子模板
        /// </summary>
        public string ChildTempLate
        {
            set { _childtemplate = value; }
            get { return _childtemplate; }
        }
        /// <summary>
        /// 有效
        /// </summary>
        public bool IsVerify
        {
            set { _verify = value; }
            get { return _verify; }
        }
        /// <summary>
        /// 排序
        /// </summary>
        public int Rank
        {
            set { _rank = value; }
            get { return _rank; }
        }
        /// <summary>
        /// 父ID
        /// </summary>
        public int ParentID
        {
            set { _parentid = value; }
            get { return _parentid; }
        }
        /// <summary>
        /// 类别
        /// </summary>
        public int TypeID
        {
            set { _typeid = value; }
            get { return _typeid; }
        }
        /// <summary>
        /// 文章数量
        /// </summary>
        public int Count
        {
            set { _count = value; }
            get { return _count; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 是否外链
        /// </summary>
        public bool IsUrl
        {
            set { _isurl = value; }
            get { return _isurl; }
        }
        /// <summary>
        /// 外链地址
        /// </summary>
        public string Url
        {
            set { _url = value; }
            get { return _url; }
        }

        /// <summary>
        /// 深度
        /// </summary>
        public int Depth
        {
            set { _depth = value; }
            get { return _depth; }
        }
    }
}
